package com.mdd.admin.validate.service;

import com.mdd.common.validator.annotation.IDMust;
import com.mdd.common.validator.annotation.IntegerContains;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import lombok.Data;
import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * 包年服务使用记录参数
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AnnualServiceParam implements Serializable {

    private static final long serialVersionUID = 1L;

    public interface create{}
    public interface update{}
    public interface delete{}

    @IDMust(message = "id参数必传且需大于0", groups = {update.class, delete.class})
    private Integer id;

//    @NotNull(message = "orderId参数缺失", groups = {create.class, update.class})
    @DecimalMin(value = "0", message = "orderId参数值不能少于0", groups = {create.class, update.class})
    private Integer orderId;

    //@NotNull(message = "staffId参数缺失", groups = {create.class, update.class})
//    @DecimalMin(value = "0", message = "staffId参数值不能少于0", groups = {create.class, update.class})
    private Integer staffId;

//    @NotNull(message = "date参数缺失", groups = {create.class, update.class})
//    @DecimalMin(value = "0", message = "date参数值不能少于0", groups = {create.class, update.class})
    private String date;

//    @NotNull(message = "status参数缺失", groups = {create.class, update.class})
//    @DecimalMin(value = "0", message = "status参数值不能少于0", groups = {create.class, update.class})
    private Integer status;

}
